import HttpCommonApiService from "./common/HttpCommonApi.service";

/**
 * Created by baidm in 2022/4/28 on 14:39
 */
class SJViewService {
    constructor() {
        this.$http = new HttpCommonApiService({})
    }

    /**
     * 查询与上年的统计差异
     * @returns {*}
     */
    queryStaticDiffer(){
        return this.$http.get(`/SJ-view/static-Diff`)
    }

    /**
     * 获取销售数据按月份
     * @returns {*}
     */
    querySaleDataByMonth(){
        return this.$http.get(`/SJ-view/sale/month`)
    }
    /**
     * 获取销售属性按比例
     * @returns {*}
     */
    querySaleDataByProperty(){
        return this.$http.get(`/SJ-view/sale/property`)
    }
    /**
     * 获取商品分类
     * @returns {*}
     */
    querySaleDataByCategory(){
        return this.$http.get(`/SJ-view/sale/category`)
    }
    /**
     * 按商品品质分析
     * @returns {*}
     */
    querySaleDataByQuality(){
        return this.$http.get(`/SJ-view/sale/quality`)
    }
    /**
     * 按产品销售数据分析
     * @returns {*}
     */
    querySaleDataByProduction(){
        return this.$http.get(`/SJ-view/sale/production`)
    }
}

export default new SJViewService()